<!DOCTYPE html>
<html>
<head>
  <title>HTML Example</title>
  <style>
    .d:first-child {
      color: red;
    }
    .aaa .d:last-child {
      color: green;
    }


    .aaa .d:first-child {
      color: pink;
    }


  </style>
</head>
<body>
  <div class="aaa">
    <div class="a">123</div>
    <div class="d">111111v</div>
    <div class="d">222222</div>
    <div class="d">3333333v</div>
    <div class="d">4444444v</div>
  </div>
</body>
</html>
